package com.portico.dept.solarch

import grails.plugins.springsecurity.Secured
import com.portico.util.GoogleChartBuilder

@Secured(['ROLE_SA_ADMIN', 'ROLE_SA_USER'])

class ChartController {

  def index = { }

  def project = {
    
  }

  def overall = {
    def pdb =  ProjectDashboard.findAll(params)

    String[] projectName  = new String[pdb.size()];
    String projectStatus =  new String[pdb.size()];

    def chart = new GoogleChartBuilder();



    
  }

  def quality = {
    List<ProjectQuality> pql = ProjectQuality.findAll(params)
    [projectQualityList:pql]

//    List<String> buildName = new ArrayList<String>();
//    pql.each {
//      if (buildName)
//        it.buildName
//    }

  }
}
